/**
 * created by zhangjinshun
 * 请求头
 */
package com.demo.core;


import com.tiangong.framework.bo.AbstractHeader;
import com.tiangong.framework.bo.AbstractReturn;
import com.tiangong.framework.bo.CDO;
import com.tiangong.framework.bo.Return;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;


@Component
@Slf4j
@Data
public class Header extends AbstractHeader {


    @Override
    public AbstractReturn parse(HttpServletRequest request,CDO cdoRequest) {
        //从header中取值，然后放到cdoRequest中
        //String aaaa = request.getHeader("aaaa");

        cdoRequest.set("header","aaaa");
        return Return.SUCCESS;
    }
}
